package com.weixing.mall.provider.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.weixing.mall.core.utils.RequestUtil;
import com.weixing.mall.provider.mapper.OutDepotBillProductMapper;
import com.weixing.mall.provider.model.domain.OutDepotBillProduct;
import com.weixing.mall.provider.model.dto.ChgDepotNumDto;
import com.weixing.mall.provider.service.IOutDepotBillProductService;
import org.springframework.stereotype.Service;

import java.time.LocalTime;

/**
 * <p>
 * 仓库模块-出库单商品关联表 服务实现类
 * </p>
 *
 * @author Small
 * @since 2019-11-15
 */
@Service
public class OutDepotBillProductServiceImpl extends ServiceImpl<OutDepotBillProductMapper, OutDepotBillProduct> implements IOutDepotBillProductService {




    @Override
    public IPage getOutDepotBillProductByOutDeoptId(Page page,Long outDepotId) {
        return baseMapper.getOutDepotBillProductByOutDeoptId(page,outDepotId);
    }

    @Override
    public void outDepotChgNum(ChgDepotNumDto chgDepotNumDto, Long uid) {
        chgDepotNumDto.setUpdatedBy(uid);
        chgDepotNumDto.setUpdatedTime(LocalTime.now());
        baseMapper.outDepotChgNum(chgDepotNumDto);
    }
}
